package com.demo.woziqi.entity;

import java.io.Serializable;

/**
 * @Author 宋明松
 * @Version V1.0.0
 * @Date 2022-05-13
 * 棋子实体类
 */
public class Chess implements Serializable { // 实现可序列化
    private int xIndex; // 棋子坐标
    private int yIndex;
    private int color;// 0为黑棋，1为白棋

    public Chess(int xIndex, int yIndex, int color) {
        this.xIndex = xIndex;
        this.yIndex = yIndex;
        this.color = color;
    }

    public int getxIndex() {
        return xIndex;
    }

    public int getyIndex() {
        return yIndex;
    }

    public int getColor() {
        return color;
    }

}
